package com.cy.核心编程.stream.convert;

import java.io.OutputStreamWriter;
import java.io.Writer;

public class test2 {
    public static void main(String[] args) throws Exception {
        Writer writer = new OutputStreamWriter(System.out);
        writer.write("我太想进步了，我开始热爱学习");
        writer.flush();
        //writer.close(); //有的流是不能关的，不然后面的System.out不能运行

        System.out.println("\n看着");
    }
}
